namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;
    
    public class RoleReferenceMap : ClassMap<RoleReferenceDataModel>
    {
        public RoleReferenceMap()
        {
            this.Table("RoleReference");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("RoleID");
            this.Map(x => x.RoleName).Not.Nullable().Length(256);
        }
    }
}